.class Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;
.super Ljava/lang/Object;
.source "MessagesActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    .prologue
    .line 165
    iput-object p1, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .registers 12
    .param p2, "view"    # Landroid/view/View;
    .param p3, "position"    # I
    .param p4, "id"    # J
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .local p1, "parent":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    const/4 v5, 0x1

    .line 169
    check-cast p1, Landroid/widget/ListView;

    .end local p1    # "parent":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    invoke-virtual {p1}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v3

    sub-int/2addr p3, v3

    .line 170
    iget-object v3, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    # getter for: Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->mMessages:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->access$600(Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/brixd/niceapp/userinfo/model/MessageModel;

    .line 171
    .local v2, "message":Lcom/brixd/niceapp/userinfo/model/MessageModel;
    invoke-virtual {v2, v5}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->setRead(Z)V

    .line 172
    const v3, 0x7f020210

    invoke-virtual {p2, v3}, Landroid/view/View;->setBackgroundResource(I)V

    .line 173
    const-string v3, "community_up"

    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getType()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_65

    .line 174
    iget-object v3, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->getContext()Landroid/content/Context;
    invoke-static {v3}, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->access$700(Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "MessagesPageClickUpContent"

    invoke-static {v3, v4}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 176
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->getContext()Landroid/content/Context;
    invoke-static {v3}, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->access$800(Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/brixd/niceapp/userinfo/activity/UpUsersActivity;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 177
    .local v1, "intent":Landroid/content/Intent;
    const-string v3, "UpUsers"

    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getUpUsers()Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 178
    const-string v3, "AppId"

    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getAppId()I

    move-result v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 179
    const-string v3, "ModuleType"

    sget-object v4, Lcom/brixd/niceapp/constant/AppConstant$ModuleType;->COMMUNITY:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 180
    const-string v3, "FromMessage"

    invoke-virtual {v1, v3, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 181
    iget-object v3, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    invoke-virtual {v3, v1}, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->startActivity(Landroid/content/Intent;)V

    .line 199
    .end local v1    # "intent":Landroid/content/Intent;
    :cond_64
    :goto_64
    return-void

    .line 182
    :cond_65
    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getComment()Lcom/brixd/niceapp/model/CommentModel;

    move-result-object v3

    if-eqz v3, :cond_64

    .line 183
    const-string v3, "daily_reply"

    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getType()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_8f

    const-string v3, "media_reply"

    .line 184
    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getType()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_8f

    const-string v3, "community_reply"

    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getType()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_ce

    .line 185
    :cond_8f
    iget-object v3, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->getContext()Landroid/content/Context;
    invoke-static {v3}, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->access$900(Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "MessagesPageClickReplayContent"

    invoke-static {v3, v4}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 190
    :goto_9a
    new-instance v1, Landroid/content/Intent;

    iget-object v3, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->getContext()Landroid/content/Context;
    invoke-static {v3}, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->access$1100(Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 191
    .restart local v1    # "intent":Landroid/content/Intent;
    const-string v3, "Comment"

    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getComment()Lcom/brixd/niceapp/model/CommentModel;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 192
    new-instance v0, Lcom/brixd/niceapp/model/AppModel;

    invoke-direct {v0}, Lcom/brixd/niceapp/model/AppModel;-><init>()V

    .line 193
    .local v0, "appModel":Lcom/brixd/niceapp/model/AppModel;
    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getAppId()I

    move-result v3

    invoke-virtual {v0, v3}, Lcom/brixd/niceapp/model/AppModel;->setId(I)V

    .line 194
    invoke-virtual {v2}, Lcom/brixd/niceapp/userinfo/model/MessageModel;->getAppIcon()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/brixd/niceapp/model/AppModel;->setIconUrl(Ljava/lang/String;)V

    .line 195
    const-string v3, "AppModel"

    invoke-virtual {v1, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 196
    iget-object v3, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    invoke-virtual {v3, v1}, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_64

    .line 187
    .end local v0    # "appModel":Lcom/brixd/niceapp/model/AppModel;
    .end local v1    # "intent":Landroid/content/Intent;
    :cond_ce
    iget-object v3, p0, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity$5;->this$0:Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;

    # invokes: Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->getContext()Landroid/content/Context;
    invoke-static {v3}, Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;->access$1000(Lcom/brixd/niceapp/userinfo/activity/MessagesActivity;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "MessagesPageClickCommentContent"

    invoke-static {v3, v4}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_9a
.end method
